package org.sy.lab.多线程基础._2_同步._2_ReentrantLock._3_公平锁;

public class Main {

	public static void main(String[] args) {
		
		Tick tick = new Tick();
		
		MyThread myThread = new MyThread(tick);
		
		for (int i = 0; i < 5; i++) {
			Thread thread = new Thread(myThread);
			thread.start();
			try {
				Thread.sleep(1);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
